package mumu.android.app;

import mumu.android.R;
import mumu.android.lib.tool.MLog;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

/**
 * 
 * bind服务处理。 关闭activity后，服务终止
 * 
 * @author Administrator
 * 
 */
public class event1 extends Activity {

	TextView txt_1;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setTitle("bind服务");
		setContentView(R.layout.broadcast1);
		zLib_btn btn_5 = (zLib_btn) findViewById(R.id.btn_5);
		txt_1 = (TextView) findViewById(R.id.txt_1);
		//txt_1.setText(txt_1.getText() + "  setOnClickListener_onClick");
		btn_5.setOnTouchListener(new OnTouchListener() {

			@Override
			public boolean onTouch(View v, MotionEvent event) {
				MLog.i("dd", "setOnTouchListener_onTouchEvent");
				return true;
			}
		});

		btn_5.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				MLog.i("dd", "setOnClickListener_onClick");
			}
		});
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		MLog.i("dd", "Activity_onTouchEvent");
		return super.onTouchEvent(event);
	}

}
